package com.ibm.spatiotemp.tools;

public class Util {
	
	public static double eludistance(double x1, double y1, double x2, double y2) {
		double dx = x2 - x1;
		double dy = y2 - y1;
		
		return Math.sqrt((dx*dx + dy*dy));
	}
	
	public static double eluarea(double x1, double y1, double x2, double y2) {
		double dx = x2 - x1;
		double dy = y2 - y1;
		
		return Math.abs((dx*dy));
	}
	
}
